package com.smile.frame.common.page;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 分页对象
 *
 * @author LGC
 * @date 2021/7/21 14:01
 */
@ApiModel
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageQuery implements Serializable {
    private static final long serialVersionUID = 2971089081493370078L;
    @ApiModelProperty(value = "第几页", example = "1")
    private long page_num = 1;
    @ApiModelProperty(value = "每页条数", example = "10")
    private long page_size = 10;
    @ApiModelProperty(value = "是否查询总数 默认不查询总数", example = "false")
    private boolean search_total = false;
}
